<template>
  <button @click="get()">click</button>
</template>

<script>
import axios from "axios";
import { ElMessage } from "element-plus";

export default {
  data() {
    return {
      data: [],
    };
  },
  methods: {
    get(){
      console.log(this.data[2] == null)
    }
  }
};
</script>
